package cn.yh.shop.product.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yh.shop.product.dao.Categorydao;
import cn.yh.shop.product.model.Category;
import cn.yh.shop.product.service.ICategoryService;
@Service
public class CategoryServiceImpl implements ICategoryService {
	/**
	 * 类别数据访问对象
	 */
	@Autowired
	private Categorydao categorydao;
	
	@Override
	public List<Category> getFirstCate() {
		return categorydao.selectFirstCate();
	}

	@Override
	public List<Category> getNextCate(Category cate) {
		return categorydao.selectCateById(cate);
	}

	@Override
	public List<Category> getThirdCate(String brandid) {
		return categorydao.getThirdCate(brandid);
	}
	@Override
	public Category getHotCate(String id){
		return categorydao.getHotCate(id);
	}
	@Override
	public List<Category> getSecondCate() {
		return categorydao.getSecondCate();
	}
}
